from django.urls import path
# 引入cityurl的view文件
from weatherweb.views import cityurl as city_url_views
# 引入cityweather的view文件
from weatherweb.views import cityweather as city_weather_views

urlpatterns = [
    # ================== cityURL部分 ===================
    path('city/url/', city_url_views.index, name="weather_city_url"),
    path('city/url/list/', city_url_views.list_values, name='weather_list_city_url'),
    path('city/url/add/', city_url_views.add_value, name="weather_add_city_url"),
    path('city/url/edit/', city_url_views.edit_value, name="weather_edit_city_url"),
    path('city/url/del/', city_url_views.del_value, name="weather_del_city_url"),

    path('province/list/', city_url_views.get_province, name="list_province"),
    path('city/list/', city_url_views.get_citys_by_province, name="list_city"),
    # ================== cityweather部分 ===================
    path('city/weather/', city_weather_views.index, name="weather_url"),
    path('city/weather/list/', city_weather_views.list_values, name="list_weather"),

]
